package main

import (
	"fmt"

	"fiber_cli/config"
	postgres_datasource "fiber_cli/datasources/postgres"
	"fiber_cli/route"

	"github.com/gofiber/fiber/v2"
)

func main() {
	fmt.Printf(" %c[1;0;33m%s%c[0m\n", 0x1B, "** server start **", 0x1B)
	// 初始化fiber应用
	app := fiber.New()

	route.InitRouter(app)

	postgres_datasource.InitPostgresTable()

	app.Listen(":" + config.Config.Common.Port)
}
